package main

import (
"fmt"
"reflect"
"os"
"os/exec"
"log"
. "strconv"
"encoding/json"
)

func ExampleCmd_CombinedOutput() {
        cmd := exec.Command("sh", "-c", "echo stdout; echo 1>&2 stderr")
        stdoutStderr, err := cmd.CombinedOutput()
        if err != nil {
                log.Fatal(err)
        }
        fmt.Printf("%s\n", stdoutStderr)
}


func Mona(){

	return 
}

type ZZ struct{
   Dd string `json:"dd"`
}

type Study interface{};

var bing Study = new(Study)

func main(){

   mm:= ZZ{Dd:"jiang"}
   fangs := ` {"Dd":"mmasa"}`
   err :=   json.Unmarshal([]byte(fangs),&mm)
   b,err:=json.Marshal(mm)
   if err!=nil{
     return
   }

   fmt.Println(string(b))
   
   mm.Dd = "wwwaasd"

   if err!=nil{
     return 
   }

   fmt.Println(mm.Dd)


   fmt.Println("ok")
   
   str:= "22"

   v1,_:=   Atoi(str)

   Mona()

   fmt.Println(v1)
   
   ExampleCmd_CombinedOutput()
   var i = 1
   sa := reflect.ValueOf(&i)
   sa.Elem().SetInt(2)
   fmt.Println(sa.Kind(),   os.Args[0] )
   
   fmt.Println("jiangyibo")
}
